#define  _CRT_SECURE_NO_WARNINGS 1

#include "BinaryTree.h"

int main()
{
	char str[] = "ABD##E#H##CF##G##";
	int n = strlen(str);
	int i = 0;
	pBTNode root = BinaryTreeCreate(str, n, &i);

	BinaryTreePrevOrder(root);
	printf("\n");

	pBTNode node = BinaryTreeFind(root, 'K');
	if (node != NULL)
	{
		printf("%c\n", node->val);
	}
	else
	{
		printf("NULL\n");
	}
	printf("%d\n", BinaryTreeLevelKSize(root, 2));

}